package com.shikx.demo.janino.compiler;

/**
 * @author Kaixuan Shi
 * @since 2023/7/17
 */
public class ClassLoaderService {

    private static ClassLoader classLoader;

    public static void setClassLoader(ClassLoader classLoader) {
        ClassLoaderService.classLoader = classLoader;
    }

    public static Class<?> loadClass(String fullClassName) throws ClassNotFoundException {
        return classLoader.loadClass(fullClassName);
    }
}
